package cn.yhz.pethome.dept.controller;

import cn.yhz.pethome.dept.domain.Employee;
import cn.yhz.pethome.dept.domain.Shop;
import cn.yhz.pethome.dept.service.IShopService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/shop")
public class ShopController {
    @Autowired
    private IShopService shopService;

    /**
     * 查询去全部
     * @return
     */
    @GetMapping
    public List<Shop> selectAll(){
       return shopService.selectAll();
    }
}
